package com.ruoyi.purchase.mapper;

import com.ruoyi.purchase.pojo.PurchaseApplyMaterial;

import java.util.List;

/**
 * 采购申请清单Mapper接口
 *
 * @author ruoyi
 * @date 2024-10-25
 */
public interface PurchaseApplyMaterialMapper
{
    /**
     * 查询采购申请清单purchase_apply_id
     *
     * @param id 采购申请清单主键
     * @return 采购申请清单
     */
    public PurchaseApplyMaterial selectPurchaseApplyMaterialById(Integer id);

    /**
     * 查询采购申请清单
     *
     * @param id 采购申请清单主键
     * @return 采购申请清单
     */
    public PurchaseApplyMaterial selectPurchaseApply(Integer id);


    /**
     * 查询采购申请清单列表
     *
     * @param purchaseApplyMaterial 采购申请清单
     * @return 采购申请清单集合
     */
    public List<PurchaseApplyMaterial> selectPurchaseApplyMaterialList(PurchaseApplyMaterial purchaseApplyMaterial);

    /**
     * 新增采购申请清单
     *
     * @param purchaseApplyMaterial 采购申请清单
     * @return 结果
     */
    public int insertPurchaseApplyMaterial(PurchaseApplyMaterial purchaseApplyMaterial);

    /**
     * 修改采购申请清单
     *
     * @param purchaseApplyMaterial 采购申请清单
     * @return 结果
     */
    public int updatePurchaseApplyMaterial(PurchaseApplyMaterial purchaseApplyMaterial);

    /**
     * 删除采购申请清单
     *
     * @param id 采购申请清单主键
     * @return 结果
     */
    public int deletePurchaseApplyMaterialById(Integer id);

    /**
     * 批量删除采购申请清单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePurchaseApplyMaterialByIds(Integer[] ids);

    /**
     * 根据purchase_apply_id值删除数据
     * @param purchaseApplyId
     * @return
     */
    int deletePurchaseApplyMaterialByApplyId(Integer purchaseApplyId);
}